.aplayer {
    --base-font-size: 12px;
    --aplayer-height: calc(var(--base-font-size) * 5.5);
    --theme-color: #fadfa3;
    position: relative;
    background: #fff;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.07), 0 1px 5px 0 rgba(0, 0, 0, 0.1);
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
    border-radius: 2px;
    user-select: none;
    line-height: normal;
    svg {
        width: 100%;
        height: 100%;

        path {
            fill: #fff;
        }
    }

    .aplayer-icon {
        width: calc(var(--base-font-size) + 3px);
        height: calc(var(--base-font-size) + 3px);
        border: none;
        background-color: transparent;
        outline: none;
        cursor: pointer;
        opacity: 0.8;
        vertical-align: middle;
        padding: 0;
        font-size: var(--base-font-size);
        margin: 0;
        display: inline-block;

        path {
            transition: all 0.2s ease-in-out;
        }
    }

    .aplayer-pic {
        position: relative;
        float: left;
        height: var(--aplayer-height);
        width: var(--aplayer-height);
        background-color: antiquewhite;
        background-size: cover;
        background-position: center;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
        cursor: pointer;

        &:hover .aplayer-button {
            opacity: 1;
        }
        .aplayer-button {
            position: absolute;
            border-radius: 50%;
            opacity: 0.8;
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
            box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
            background: rgba(0, 0, 0, 0.2);
            transition: all 0.1s ease;
        }
        .aplayer-play {
            width: 26px;
            height: 26px;
            svg {
                position: absolute;
                top: 3px;
                left: 4px;
                height: 20px;
                width: 20px;
            }
        }
        .aplayer-pause {
            width: 26px;
            height: 26px;
            svg {
                position: absolute;
                top: 3px;
                left: 4px;
                height: 20px;
                width: 20px;
            }
        }
    }

    .aplayer-info {
        margin-left: var(--aplayer-height);
        height: var(--aplayer-height);
        padding: 14px 7px 0 10px;
        box-sizing: border-box;
        .aplayer-music {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            user-select: text;
            margin: 0 0 calc(var(--base-font-size) + 1px) 5px;
            padding-bottom: 2px;
            cursor: default;

            .aplayer-title {
                font-size: calc(var(--base-font-size) + 2px);
            }
            .aplayer-artist {
                font-size: var(--base-font-size);
                color: #666;
            }
        }

        .aplayer-controller {
            display: flex;
            position: relative;
            align-items: center;

            .aplayer-bar-wrap {
                flex: 1;
                margin: 0 0 0 5px;
                padding: 4px 0;
                cursor: pointer !important;

                &:hover {
                    .aplayer-bar .aplayer-played .aplayer-thumb {
                        transform: scale(1);
                    }
                }
                .aplayer-bar {
                    position: relative;
                    height: 2px;
                    width: 100%;
                    background: #cdcdcd;

                    .aplayer-loaded {
                        position: absolute;
                        left: 0;
                        top: 0;
                        bottom: 0;
                        background: #aaa;
                        height: 2px;
                        transition: all 0.5s ease;
                    }
                    .aplayer-played {
                        position: absolute;
                        left: 0;
                        top: 0;
                        bottom: 0;
                        height: 2px;
                        background: var(--theme-color) none repeat scroll 0 0;

                        .aplayer-thumb {
                            position: absolute;
                            top: 0;
                            right: 5px;
                            margin-top: -4px;
                            margin-right: -10px;
                            height: 10px;
                            width: 10px;
                            border-radius: 50%;
                            cursor: pointer;
                            transition: all 0.3s ease-in-out;
                            background: var(--theme-color) none repeat scroll 0 0;
                            transform: scale(0);
                        }
                    }
                }
            }
            .aplayer-loading-icon {
                //display: none;
                svg {
                    display: block;
                    position: absolute;
                    animation: rotate 1s linear infinite;
                }
            }
            .aplayer-time {
                position: relative;
                right: 0;
                bottom: 4px;
                height: calc(var(--base-font-size) + 5px);
                color: #999;
                font-size: 11px;
                padding-left: 7px;

                .aplayer-time-inner {
                    vertical-align: center;
                }
                .aplayer-icon {
                    cursor: pointer;
                    transition: all 0.2s ease;
                    path {
                        fill: #666;
                    }
                }
            }
            .aplayer-volume-wrap {
                display: inline-block;
                position: relative;
                margin-left: 3px;
                cursor: pointer;

                &:hover .aplayer-volume-bar-wrap {
                    height: 40px;
                }

                .aplayer-volume-bar-wrap {
                    position: absolute;
                    bottom: 15px;
                    right: -3px;
                    width: 25px;
                    height: 0;
                    z-index: 99;
                    overflow: hidden;
                    transition: all 0.2s ease-in-out;

                    .aplayer-volume-bar {
                        position: absolute;
                        bottom: 0;
                        right: 10px;
                        width: 5px;
                        height: 35px;
                        background: #aaa;
                        border-radius: 2.5px;
                        overflow: hidden;
                        .aplayer-volume {
                            background: var(--theme-color) none repeat scroll 0 0;
                            position: absolute;
                            bottom: 0;
                            right: 0;
                            width: 5px;
                            transition: all 0.1s ease;
                        }
                    }
                }
            }
        }
    }
    .aplayer-list {
        //overflow: auto;
        scrollbar-width: none;
        transition: all 0.5s ease;
        will-change: height;
        display: none;
        overflow: hidden;
        list-style-type: none;
        margin: 0;
        padding: 0;
        overflow-y: auto;
        ol {
            list-style-type: none;
            margin: 0;
            padding: 0;
            overflow-y: auto;
        }
        li {
            position: relative;
            text-align: left;
            height: calc((var(--base-font-size) + 4px) * 2);
            line-height: 32px;
            padding: 0 15px;
            font-size: var(--base-font-size);
            border-top: 1px solid #e9e9e9;
            cursor: pointer;
            transition: all 0.2s ease;
            overflow: hidden;
            margin: 0;

            &:first-child {
                border-top: none;
            }

            &:hover {
                background: #efefef;
            }

            .aplayer-list-cur {
                width: 3px;
                height: calc((var(--base-font-size) + 4px) * 2 - 10px);
                position: absolute;
                left: 0;
                top: 5px;
                cursor: pointer;
                background-color: var(--theme-color);
            }
            .aplayer-list-index {
                color: #666;
                margin-right: 12px;
                cursor: pointer;
            }
            .aplayer-list-artist {
                color: #666;
                float: right;
                cursor: pointer;
            }
        }
    }

    &.aplayer-withlist {
        .aplayer-list {
            display: block;
        }
    }
    &.aplayer-narrow {
        width: var(--aplayer-height);

        .aplayer-info {
            display: none;
        }
        .aplayer-list {
            display: none;
        }
        .aplayer-pic,
        .aplayer-body {
            height: var(--aplayer-height);
            width: var(--aplayer-height);
        }
    }
}

@keyframes aplayer-roll {
    0% {
        left: 0;
    }
    100% {
        left: -100%;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}



.chat-speaker-container {
    font-size: 20px;
    height: 30px;
    color: var(--bs-primary);
    span {
        cursor: pointer;
    }
}